home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
gamesrc
/
rtanksrc
/
radio.h
< prev
next >
Wrap
Text File
|
1989-02-13
|
618b
|
29 lines
#define RADIO struct radio_type
#define p_RADIO RADIO *
#define CHANNEL struct channel_type
#define p_CHANNEL CHANNEL *
/*
* This should be 1 more than the actual number expected.
* IE: 5 == 4 messages
*/
#define MAX_MESSAGES 6
RADIO {
int note1, note2, note3;
};
CHANNEL {
int head;
int tail;
RADIO message[MAX_MESSAGES];
};
void read_message(p_CHANNEL c, int *n1, int *n2, int *n3);
void inc_pointer(int *p);
int peek_ahead(int p);
void add_message_to_channel(p_CHANNEL c, int n1, int n2, int n3);
void clear_channel(p_CHANNEL c);
BOOL any_messages(p_CHANNEL c);